package com.t3;

/**
 * Created by xuyiwei on 2018/7/13.
 */
class Valus{
    int t ;
}

public class EqualsMethod {

    public static void main(String[] args) {
        Integer n1 = new Integer(47);
        Integer n2 = new Integer(47);
        System.out.println(n1.equals(n2));

        Valus v1 = new Valus();
        Valus v2 = new Valus();
        v1.t = v2.t =100;
        System.out.println(v1.equals(v2));


        System.out.println(v1.t==v2.t);
    }
}
